﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="sysTemp.aspx.cs" Inherits="sysTemp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <ext:PageManager ID="PageManager1" runat="server" />
    <ext:Form ID="Form2" runat="server" BodyPadding="5px" EnableBackgroundColor="true"
        Title="Form" ShowHeader="false">
        <Rows>
            <ext:FormRow ID="FormRow1" runat="server">
                <Items>       
                    <ext:DropDownList ID="dpPageSize" runat="server"   Label="每页显示条数"  BoxMargin="0px">
                    </ext:DropDownList>  
                    <ext:DropDownList ID="DropDownList1" runat="server" Label="排序"   BoxMargin="0px" >
                    </ext:DropDownList> 
                     <ext:DropDownList ID="DropDownList2" runat="server" Label="规则" >
                    </ext:DropDownList>  
                    
                       
                </Items>
            </ext:FormRow>

            <ext:FormRow ID="FormRow2" runat="server">
            <Items>
            <ext:DropDownList ID="DropDownList4" runat="server" Label="搜索"   >
                    </ext:DropDownList>
                     <ext:DropDownList ID="DropDownList3" runat="server" Label="状态"   ColumnWidth="1px">
                    </ext:DropDownList>  
                <ext:TextBox ID="TextBox1" runat="server"  Label="关键字" Text="">
                </ext:TextBox>                                        
            </Items>
            </ext:FormRow>
        </Rows>
         
        <Toolbars>
        <ext:Toolbar ID="Toolbar1" runat="server" Position="Bottom">
            <Items>
             <ext:Button ID="btnAdd" Text="新增" runat="server"   OnClick="WinAdd"></ext:Button>
             <ext:ToolbarSeparator ID="ToolbarSeparator1" runat="server"></ext:ToolbarSeparator>
             <ext:Button ID="Button2" Text="删除" runat="server"></ext:Button>
             <ext:ToolbarSeparator ID="ToolbarSeparator2" runat="server"></ext:ToolbarSeparator>
             <ext:Button ID="Button3" Text="搜索" runat="server"></ext:Button>
            </Items>
            </ext:Toolbar>
        </Toolbars>
       
    </ext:Form>

    <ext:Grid ID="Grid1" runat="server" EnableCheckBoxSelect="true" EnableRowNumber="true"  PageSize="3"  AllowPaging="true"  OnPageIndexChange="Grid1_PageIndexChange"  AllowSorting="true"  SortColumn="CID" SortDirection="ASC"
        Title="Grid" ShowHeader="false" OnSort="Grid1_Sort"  Height="373">
        <Columns>
        <ext:BoundField HeaderText="ID"  Width="50px" DataField="C_ID" SortField="C_ID" DataFormatString="{0}" ColumnID="CID" />
         <ext:BoundField HeaderText="标题" Width="60px" DataField="C_Title" />
         <ext:BoundField HeaderText="浏览次数"  Width="60px" DataField="C_IsTop" />
         <ext:CheckBoxField Width="60px" RenderAsStaticField="true" DataField="AtSchool" HeaderText="首页置顶" />
         <ext:BoundField HeaderText="状态"  Width="60px" DataField="C_State"   />
         <ext:BoundField HeaderText="创建人" Width="60px" DataField="C_Builder" />
         <ext:BoundField HeaderText="发布日期" Width="100px"  DataField="C_PublishDate" />
        <ext:BoundField HeaderText="修改日期" Width="100px" DataField="C_UpdateDate" />
        <ext:BoundField HeaderText="管理" Width="200px" />
        </Columns>
    </ext:Grid>

    <ext:Window ID="WinADD" runat="server" Height="471px" IsModal="true" Popup="true" Hidden="true"  Target="Parent"   EnableIFrame="true"
        Title="" Width="750px">       
    </ext:Window>

    </form>
</body>
</html>
